<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <title>Add new post &laquo; Admin</title>
    <link rel="stylesheet" href="../assets/vendors/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../assets/vendors/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../assets/vendors/nprogress/nprogress.css">
    <link rel="stylesheet" href="../assets/css/admin.css">
</head>

<body>
    @@include('../comm/admin/comm.html')
    <script>
        NProgress.start()
    </script>

    <div class="main">
        <!-- 头部退出 -->
        @@include('../comm/top.html')
        <div class="container-fluid">
            <div class="page-title">
                <h1>写文章</h1>
            </div>
            <!-- 有错误信息时展示 -->
            <!-- <div class="alert alert-danger">
                    <strong>错误！</strong>发生XXX错误
            </div> -->
            <form class="row">
                <div class="col-md-9">
                    <div class="form-group">
                        <label for="title">标题</label>
                        <input id="title" class="form-control input-lg" type="text" placeholder="文章标题">
                    </div>
                    <div class="form-group">
                        <label for="content">内容</label>
                        <textarea id="content" class="form-control input-lg" cols="30" rows="10" placeholder="内容"></textarea>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group">
                        <label for="feature">文章封面</label>
                        <!-- show when image chose -->
                        <img class="help-block thumbnail" style="display: none" src="">
                        <input id="feature" class="form-control" type="file">
                    </div>
                    <div class="form-group">
                        <label for="category">所属分类</label>
                        <select id="category" class="form-control">
                           @@include('../comm/admin/post-add.html')
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="created">发布时间</label>
                        <input id="created" class="form-control" type="datetime-local">
                    </div>
                    <div class="form-group">
                        <label for="status">状态</label>
                        <select id="status" class="form-control">
              <option value="0">草稿</option>
              <option value="1">已发布</option>
            </select>
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary add" type="button">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!-- 左侧导航栏 -->
    @@include('../comm/left-nav.html')
    <script src="../assets/js/admin/post-add.js"></script>
    <script>
        NProgress.done()
    </script>
</body>

</html>